package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ASUS-PC on 2018/10/27.
 */
@TableName(value = "vl_message")
public class Message extends Model<Message> {
    int id;
    int type;
    @TableField(value = "user_id_y")
    int yUser;
    @TableField(value = "user_id_c")
    private int cUser;
    String content;
    @TableField(value = "create_time")
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getyUser() {
        return yUser;
    }

    public void setyUser(int yUser) {
        this.yUser = yUser;
    }

    public int getcUser() {
        return cUser;
    }

    public void setcUser(int cUser) {
        this.cUser = cUser;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
